﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CIIS.Common;
using DevExpress.XtraEditors;

namespace CIIS
{
    public partial class ClueVerifyManage : Manage
    {
        public ClueVerifyManage()
        {
            InitializeComponent();

            InitUserControl();
        }

        private void InitUserControl()
        {
            //InitButtons(new string[] { "审核" }, new EventHandler[] { btnAdd_click });

            InitParamControl(new bool[] { true, false, true, false, true, false },
                new string[] { "编号：", "", "姓名：", "", "嫌疑人姓名：", "" },
                new DropdownControlParam[] { null, null, null, null, null, null });

            InitGridViewDataColumns(new string[] { "选中", "序号", "线索编号", "姓名", "提供时间", "性质", "嫌疑人", "登记时间" },
                new string[] { "IsSelected", "", "", "", "", "", "", "" },
                null);

            InitGridViewOptColumnWithEvent(new string[] { "详情", "审核" },
                new EventHandler[] { linkDetail_click, linkVerify_click });
        }

        /// <summary>
        /// 详情与416相同
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="ent"></param>
        void linkDetail_click(object sender, EventArgs ent)
        {
            Clue dlg = new Clue();
            dlg.OptType = EOperateType.Detail;
            dlg.ShowDialog();
        }
        void linkVerify_click(object sender, EventArgs ent)
        {
            ClueVerify dlg = new ClueVerify();
            dlg.ShowDialog();
        }
    }
}
